//
// Created by xuda on 25-7-12.
//

#include <stdio.h>
int main()
{
    int arr[5] = {10, 20, 30, 40, 50};
    int *p1 = &arr[0];
    int *p3 = &arr[3];
    printf("p1的指针为: %p\n", p1);
    printf("p1的值为: %d\n", *p1);

    printf("++p1的值为：%d\n", *(++p1));
    printf("++p1的值为：%d\n", *p1);
    printf("p1++的值为：%d\n", *(p1++));
    printf("p1++的值为：%d\n", *p1);



    int a = 10;
    int *p4 = &a;
    int *p5 = &p4;
    printf("%p\n", p4);
    printf("%p\n", &p4);
    printf("%p\n", p5);

}